#include "eventfactory.h"

EventFactory::EventFactory()
{

}

EventFactory::~EventFactory()
{

}

void EventFactory::destroy(Event *e)
{
    if(!e){
        LOG_ERROR() << "Invalid argument.";

        return;
    }

    e->~Event();

    unsigned long *l = (unsigned long *)(e - sizeof(unsigned long));

    m_pool.free(l, *l);
}
